package com.github.pig.admin.model.attendance;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sxf
 * @since 2018-11-22
 */
@TableName("attendance_times")
public class AttendanceTimes extends Model<AttendanceTimes> {

    private static final long serialVersionUID = 1L;

    private String id;
    @TableField("user_name")
    private String userName;
    /**
     * 考勤日期  例如 2018-01-02
     */
    @TableField("attendance_time")
    private String attendanceTime;
    /**
     * 记录类型 0正常 1当天正在考勤 2缺卡 3出差 4迟到 5早退 6外勤 7休息
     */
    @TableField("record_type")
    private String recordType;
    /**
     * 当天打卡次数
     */
    private Integer times;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;
    @TableField("del_flag")
    private String delFlag;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userId) {
        this.userName = userId;
    }

    public String getAttendanceTime() {
        return attendanceTime;
    }

    public void setAttendanceTime(String attendanceTime) {
        this.attendanceTime = attendanceTime;
    }

    public String getRecordType() {
        return recordType;
    }

    public void setRecordType(String recordType) {
        this.recordType = recordType;
    }

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AttendanceTimes{" +
        ", id=" + id +
        ", userName=" + userName +
        ", attendanceTime=" + attendanceTime +
        ", recordType=" + recordType +
        ", times=" + times +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
